﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PalFramework.Object;
using PalBattleEmulator.Object;
using PalBattleEmulator.Object.Unit;

namespace PalBattleEmulator
{
    public class GameContext
    {
        //角色
        public static ICharacter[] Characters;
        //队伍
        public static ITeam OurTeam;
        //包裹

        public static void Initialize()
        {
            Characters = new Character[GlobalConfig.GAME_CONFIG_CHARACTER_COUNT];
            Characters[0] = CharacterFactory.Create(0);
            Characters[1] = CharacterFactory.Create(1);
            Characters[2] = CharacterFactory.Create(2);
            Characters[3] = CharacterFactory.Create(3);
            Characters[4] = CharacterFactory.Create(4);
            Characters[5] = CharacterFactory.Create(5);

            OurTeam = new CharacterTeam(4, 1, new ICharacter[] { Characters[0], Characters[1], Characters[2], Characters[4] });
        }
    }
}
